package org.jctc.els.modules.biz.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户和班级关联表
 * </p>
 *
 * @author lyh
 * @since 2021-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("poc_classes_user")
@ApiModel(value="UserClass对象", description="用户和班级关联表")
public class ClassesUser extends Model<ClassesUser> {
	private static final long serialVersionUID = -8865565171941914463L;

    private Long userId;

    @ApiModelProperty(value = "班级ID")
    private Long classesId;

    @ApiModelProperty(value = "课时")
    private Integer classesHour;

	@TableField(exist = false)
    private String head;

	@TableField(exist = false)
    private String realName;

	@TableField(exist = false)
	private String classesName;

	private Long schoolId;
}
